package 星期六;

import java.util.Locale;

public class 练习2 {
    public static void main(String[] args) {
        String str = "  qwer asdf zxcv  ";
        System.out.println(str.indexOf("as"));
        String[] arr = str.split("\\ ");
        for (int i = 0 ; i<arr.length;i++){
            System.out.println(arr[i]);

        }
        System.out.println(str.length());
        System.out.println(str.toUpperCase());

        char[] cha = str.toCharArray();
        for (int i = 0 ; i<cha.length;i++){
            System.out.println(cha[i]);

        }




    }
}
